package com.artieksi.core;

import java.sql.Timestamp;

/**
 * User: TTACANSEVER
 */
public class DbSignObject {

    private long signerId;
    private long signedId;
    private String signerUsername;
    private String signedUsername;
    private String sign;
    private Timestamp signTime;
    private double latitude;
    private double longitude;
    private String pictureUrl;

    public DbSignObject() {
    }

    public DbSignObject(long signerId, long signedId, String signerUsername, String signedUsername, String sign,
                        Timestamp signTime, double latitude, double longitude, String pictureUrl) {
        this.signerId = signerId;
        this.signedId = signedId;
        this.signerUsername = signerUsername;
        this.signedUsername = signedUsername;
        this.sign = sign;
        this.signTime = signTime;
        this.latitude = latitude;
        this.longitude = longitude;
        this.pictureUrl = pictureUrl;
    }

    public long getSignerId() {
        return signerId;
    }

    public void setSignerId(long signerId) {
        this.signerId = signerId;
    }

    public long getSignedId() {
        return signedId;
    }

    public void setSignedId(long signedId) {
        this.signedId = signedId;
    }

    public String getSignerUsername() {
        return signerUsername;
    }

    public void setSignerUsername(String signerUsername) {
        this.signerUsername = signerUsername;
    }

    public String getSignedUsername() {
        return signedUsername;
    }

    public void setSignedUsername(String signedUsername) {
        this.signedUsername = signedUsername;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public Timestamp getSignTime() {
        return signTime;
    }

    public void setSignTime(Timestamp signTime) {
        this.signTime = signTime;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public String getPictureUrl() {
        return pictureUrl;
    }

    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl;
    }

    @Override
    public String toString() {
        return "DbSignObject{" +
                "signerId=" + signerId +
                ", signedId=" + signedId +
                ", signerUsername='" + signerUsername + '\'' +
                ", signedUsername='" + signedUsername + '\'' +
                ", sign='" + sign + '\'' +
                ", signTime=" + signTime +
                ", latitude=" + latitude +
                ", longitude=" + longitude +
                ", pictureUrl='" + pictureUrl + '\'' +
                '}';
    }
}
